package com.itbaizhan.springbootdemo4.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Controller
public class PageController {
    //根据resfult风格，直接在路径拿 到参数，再传到参数中
    @GetMapping("/{page}")
    public String page4(@PathVariable String page){
        return page;
    }
}
